import httpInstance from "@/utils/http";

export function getTopCategoryAPI(id: String) {
	return httpInstance({
		url: "category",
		params: {
			id: id,
		}
	});
}

export function getCategoryFilterAPI(id: String) {
	return httpInstance({
		url: "category/sub/filter",
		params: {
			id: id,
		}
	});
}

export function getSubCategoryAPI(data: any) {
	return httpInstance({
		url: "/category/goods/temporary",
		method: "POST",
		data: data,
	});
}